package com.example.mahjong.ui.screen;

import com.example.mahjong.logic.story.InitAction;
import com.example.mahjong.ui.model.Position;

public class ScreenChange {
	
	
	public static void init(int width,int height){
		mWidth = width;
		mHeight = height;
	}
	
	public static Position getAblPosition(int x,int y){
		Position position = new Position();
		
		position.setX(x*mWidth/normalWidth);
		position.setY(y*mHeight/normalHeight);
		
		return position;
	}
	
	public static int getAblPositionX(int x){
		return x*mWidth/normalWidth;
	}
	
	public static int getAblPositionY(int y){
		return y*mHeight/normalHeight;
	}
	
	private static ScreenChange screenChange;
	private static int mWidth;
	private static int mHeight;
	private static final int normalWidth = 800;
	private static final int normalHeight = 480;
}
